import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/home/Home.vue'

Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'Home',
            component: Home
        },
        {
            path: '/city',
            name: "City",
            component: () => import('./views/city/City.vue')
        },
        {
            path: '/detail/:id',
            name: "Detail ",
            component: () => import('./views/detail/Detail.vue')
        }
    ],
    // eslint-disable-next-line no-unused-vars
    scrollBehavior(to, from, savePossition) {
        return {
            x: 0,
            y: 0
        }
    }
})